<table class="contract-list" data-page="${page!'1'}" data-count="${count!'0'}" data-page-size="${pageSize!'30'}">
	<tr class="title-row">
		<td class="text-center">合同名称</td>
		<td class="text-center">编号</td>
		<td class="text-center">状态</td>
		<td class="text-center">签订日期</td>
		<td class="text-center">备注</td>
	</tr>
	<#if data??> <#list data as contract>
	<tr>
		<td class="text-center" onclick="window.open('${request.contextPath}/contract/view/${contract.id}','_blank');" style="cursor: pointer;">${contract.name}</td>
		<td class="text-center">${contract.no}</td>
		<td class="text-center">${contract.status.value}</td>
		<td class="text-center">${(contract.signDate?string('yyyy-MM-dd'))!'-'}</td>
		<td class="text-center">${contract.remark}</td>
	</tr>
	</#list> </#if>
</table>

<script src="${request.contextPath}/js/suredy-list.js"></script>
<script type="text/javascript">
	$(function() {
		$('.contract-list').list({
			header : false,
			paginate : function(page, pageSize, key) {
				var url = '${request.contextPath}/contract//list/${status}?page=' + page + '&pageSize=' + pageSize;
				$.suredy.loadContent(url, $('.contract-list').parents('.suredy-list').parent());
			}
		});
	});
</script>